﻿<phone:PhoneApplicationPage 
    x:Class="Studio77.SuperLink.Pages.StagePage"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:phone="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone"
    xmlns:shell="clr-namespace:Microsoft.Phone.Shell;assembly=Microsoft.Phone"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
	xmlns:toolkit="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone.Controls.Toolkit"
    xmlns:localView="clr-namespace:Studio77.SuperLink.Views"
    FontFamily="{StaticResource PhoneFontFamilyNormal}"
    FontSize="{StaticResource PhoneFontSizeNormal}"
    Foreground="{StaticResource PhoneForegroundBrush}"
    SupportedOrientations="Portrait" Orientation="Portrait"
    mc:Ignorable="d" d:DesignHeight="800" d:DesignWidth="480"
    shell:SystemTray.IsVisible="False">

    <!--LayoutRoot 是包含所有页面内容的根网格-->
    <Viewbox>

		<!--LayoutRoot 是包含所有页面内容的根网格-->
		<Grid x:Name="LayoutRoot" Background="White" Height="800" Width="480">
			<Image Grid.Row="1" Source="/Studio77.SuperLink;component/Images/maingb.jpg" Stretch="Fill" Opacity="0.5"/>
			<Border BorderThickness="0,0,0,0" Height="46" VerticalAlignment="Top" CornerRadius="0,0,20,0" HorizontalAlignment="Left" Width="186">
				<Border.Background>
					<LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
						<GradientStop Color="#FFC20000" Offset="0.009"/>
						<GradientStop Color="#FF4E0000" Offset="1"/>
					</LinearGradientBrush>
				</Border.Background>
				<TextBlock x:Name="txtStageTitle" HorizontalAlignment="Center" TextWrapping="Wrap" Text="选择游戏关卡" VerticalAlignment="Center" FontFamily="Arial" FontSize="21.333"/>
			</Border>
			<Border BorderThickness="1" Height="700" Width="430" HorizontalAlignment="Center" VerticalAlignment="Center" CornerRadius="20" Background="#33100C0C" Margin="0,50,0,0">
				<ItemsControl x:Name="stageItemsControl" ItemsSource="{Binding}" d:IsLocked="True">
					<ItemsControl.ItemsPanel>
						<ItemsPanelTemplate>
							<toolkit:WrapPanel ItemHeight="100" ItemWidth="106"/>
						</ItemsPanelTemplate>
					</ItemsControl.ItemsPanel>
					<ItemsControl.ItemTemplate>
						<DataTemplate>
							<localView:StageItemView Height="90" Width="90"/>
						</DataTemplate>
					</ItemsControl.ItemTemplate>
				</ItemsControl>
				<!--<toolkit:WrapPanel ItemHeight="132" ItemWidth="132" >
                    <Rectangle Fill="Aqua" Height="100" Width="100"/>
                    <Rectangle Fill="Pink" Height="100" Width="100"/>
                    <Rectangle Fill="Green" Height="100" Width="100"/>
                    <Rectangle Fill="YellowGreen" Height="100" Width="100"/>
                    <Rectangle Fill="Red" Height="100" Width="100"/>
                </toolkit:WrapPanel>-->
			</Border>
			<Image Height="42" Margin="0,4,8,0" Source="/Studio77.SuperLink;component/Images/title.png" Stretch="Fill" VerticalAlignment="Top" HorizontalAlignment="Right" Width="194"/>

			<!--TitlePanel 包含应用程序的名称和页标题-->

			<!--ContentPanel - 在此处放置其他内容-->
		</Grid>

	</Viewbox>

    <!--演示 ApplicationBar 用法的示例代码-->
    <!--<phone:PhoneApplicationPage.ApplicationBar>
        <shell:ApplicationBar IsVisible="True" IsMenuEnabled="True">
            <shell:ApplicationBarIconButton IconUri="/Images/appbar_button1.png" Text="按钮 1"/>
            <shell:ApplicationBarIconButton IconUri="/Images/appbar_button2.png" Text="按钮 2"/>
            <shell:ApplicationBar.MenuItems>
                <shell:ApplicationBarMenuItem Text="菜单项 1"/>
                <shell:ApplicationBarMenuItem Text="菜单项 2"/>
            </shell:ApplicationBar.MenuItems>
        </shell:ApplicationBar>
    </phone:PhoneApplicationPage.ApplicationBar>-->

</phone:PhoneApplicationPage>
